Give the model access to specific functions
https://platform.openai.com/docs/guides/prompt-engineering/tactic-give-the-model-access-to-specific-functions
The Chat Completions API allows passing a list of function descriptions in requests.
This is the recommended way of using OpenAI models to call external functions.
to learn more
Function calling (OpenAI docs)
How to call functions with chat models